package com.yoyo.common.core.enums;
/**
 * 用户状态
 *
 * @author yoyo
 */
public enum ErrorCode {

    CODE_10002("10002","账号已存在"),
    CODE_10001("10001","账号或者密码不能为空");

    private  String code;
    private  String message;

    ErrorCode(String code) {
        this.code = code;
    }

    ErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getMessage() {
        return message;
    }



    public String getCode() {
        return code;
    }
}
